export const publicFun = {
    //积分类型 返回type对应title
    integralType(id) {
        let txt = ''
        switch (id) {
            case 1:
                txt = '会员积分'
                break;
            case 2:
                txt = '云打印专项积分'
                break;
            case 3:
                txt = '预约会议专项积分'
                break;
            case 4:
                txt = '企业云打印专项积分'
                break;
            case 5:
                txt = '企业预约会议专项积分'
                break;
        }
        return txt
    },
    //订单状态
    orderStatus(id) {
        let txt = ''
        switch (id) {
            case 1:
                txt = '未支付'
                break;
            case 2:
                txt = '未接单'
                break;
            case 3:
                txt = '待取餐'
                break;
            case 4:
                txt = '已取餐'
                break;
            case 5:
                txt = '已购买'
                break;
            case 6:
                txt = '已完成'
                break;
            case 7:
                txt = '已预约'
                break;
            case 8:
                txt = '已结束'
                break;
            case 9:
                txt = '已支付'
                break;
            case 10:
                txt = '已取消'
                break;
            case 11:
                txt = '已付定金'
                break;
            case 12:
                txt = '使用中'
                break;
        }
        return txt
    },
    //支付类型
    paySubType(id) {
        let txt = ''
        switch (id) {
            case '1':
                txt = '微信支付'
                break;
            case '2':
                txt = '余额支付'
                break;
            case '3':
                txt = '无需支付'
                break;
            case '4':
                txt = '定金支付'
                break;
        }
        return txt
    },
    //支付类型
    payType(id) {
        let txt = ''
        switch (id) {
            case '1':
                txt = '个人'
                break;
            case '2':
                txt = '企业'
                break;
            case '3':
                txt = 'vip卡'
                break;
        }
        return txt
    }
}